package com.allwees.bs.c.module.user.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.allwees.bs.c.module.base.entity.JpaBaseEntity;
import com.allwees.bs.core.model.util.PhotosStr;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Data
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@Entity()
@Table(name = "usr_feedback")
public class FeedbackEntity extends JpaBaseEntity implements PhotosStr {
    //类型
    @Column(name = "type")
    private Integer type;

	@Column(length = 64)
	private String userUuid;

    //名字
    private String username;

    //邮箱
    private String email;

    //内容
    @Column(length = 8192)
    private String content;

    // 软件版本
    private String software;

    // 硬件厂商
    private String hardware;

    //图片地址，多个图片用','拼接
	@JsonIgnore
    @JSONField(serialize = false, deserialize = false)
    @Column(length = 4096)
    protected String photosStr;

	// 反馈来源渠道 ID
    @Column(name = "channel_uuid", length = 48, updatable = false)
    private String channelUuid;
}
